Skip to content

Use java.text.BreakIterator in DefaultTextDoubleClickStrategy#3990

Draft
vogella wants to merge 1 commit intoeclipse-platform:masterfrom
vogella:icu-jfacetext
Draft

Use java.text.BreakIterator in DefaultTextDoubleClickStrategy#3990
vogella wants to merge 1 commit intoeclipse-platform:masterfrom
vogella:icu-jfacetext

Conversation

@vogella
Copy link
Copy Markdown
Contributor

@vogella vogella commented May 8, 2026

Replaces com.ibm.icu.text.BreakIterator with java.text.BreakIterator in DefaultTextDoubleClickStrategy and drops the matching Import-Package: com.ibm.icu.text from the bundle manifest. The JDK BreakIterator exposes the same API (getWordInstance, preceding, following, isBoundary, setText, DONE) and the existing POSIX-locale workaround for . not being treated as a word boundary continues to work. This removes the last com.ibm.icu reference from org.eclipse.jface.text.

Planned for 4.41

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

Test Results

   867 files  ± 0     867 suites  ±0   54m 16s ⏱️ + 1m 31s
 7 993 tests + 5   7 750 ✅ + 5  243 💤 ±0  0 ❌ ±0 
20 481 runs  +15  19 826 ✅ +15  655 💤 ±0  0 ❌ ±0 

Results for commit 40485b6. ± Comparison against base commit 195df72.

♻️ This comment has been updated with latest results.

Replaces com.ibm.icu.text.BreakIterator with java.text.BreakIterator
in DefaultTextDoubleClickStrategy and drops the matching
Import-Package: com.ibm.icu.text from the bundle manifest. The JDK
BreakIterator exposes the same API (getWordInstance, preceding,
following, isBoundary, setText, DONE) and the existing POSIX-locale
workaround for '.' not being treated as a word boundary continues to
work with java.text.

Removes the last com.ibm.icu reference from org.eclipse.jface.text.
@HannesWell
Copy link
Copy Markdown
Member

I'm looking forward to have icu entirely removed.
But IIRC in the past difficulties to fully replace it have been mentioned due to different behavior. I searched for corresponding bugs/source but didn't find them. Do you have them at hand?

@vogella
Copy link
Copy Markdown
Contributor Author

vogella commented May 9, 2026

I don't have a reference but the behavior is partially covered by unit tests which I extended. This was therefore not a drop in replacement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants